<ion-view hide-nav-bar="false" view-title="{{index == 0 ? '添加客户' : '新增客户' }}">
  <ion-nav-bar class="index_head">
    <ion-nav-back-button style="border: none;background: none;">
      <div class="add_iphonexTxt" style="border: none;padding-left: 5px;color: #fff;">取消</div>
    </ion-nav-back-button>
    <ion-nav-buttons side="right">
      <button class="add_iphonexTxt" class="button" ng-click="save()" style="border: none;color: #fff;background: none;">
        保存
      </button>
    </ion-nav-buttons>
  </ion-nav-bar>
  <!--<ion-header-bar class="index_head">

    <button class="button button-icon icon ion-android-arrow-back"  ui-sref="shopHome" style="color: #fff"></button>

    <button class="button button-clear button-positive zhuce_head_btn" style="color: #fff;font-size: 14px;" ui-sref="addClient()">新增客户</button>
  </ion-header-bar>-->
  <ion-content class="wap3-user wap3-center" ng-class="{'wap3-ios-hade':platform.IOSAPP}">
    <div class="myself" style="background-color: #fff;">
      <div class="myself-head client-header" ng-if="weixinAppid" style="height: auto;padding-bottom: 6px">
        <div class="row" style="padding: 0 5px">
          <div ng-click="goLogin()" style="width: 60px">
            <div class="myself-photo" style="margin: 0 auto">
              <img ng-show="weChatInfo.photo" ng-src="{{weChatInfo.photo}}?x-oss-process=image/resize,w_750">
              <img ng-show="!weChatInfo.photo" src="img/h.png">
            </div>
          </div>
          <div ng-click="goLogin()" class="col col-80">
            <div class="list">
                <div>{{weChatInfo.nickname}}</div>
                <div style="color: #999" ng-if="weChatInfo.weixinAppid">来源：微信</div>
            </div>
          </div>
        </div>
      </div>

      <div class="myself-body">
        <div class="list" style="border-bottom: 1px solid #f0eff5" ng-click="modal.edit()">
          <a class="item item-icon-left item-icon-right" style="padding: 12px 15px">姓名
            <input type="text" placeholder="请输入用户姓名" class="client-add" ng-model="client.name">
          </a>
        </div>
        <div class="list">
          <a class="item item-icon-left item-icon-right" style="padding: 12px 15px">备注
            <input type="text" placeholder="请输入用户备注" class="client-add" ng-model="client.remark">
          </a>
        </div>

        <div class="list" style="border-bottom: 1px solid #f0eff5">
          <a class="item item-icon-left item-icon-right" style="padding: 12px 15px">手机
            <input type="tel" placeholder="请输入用户手机" class="client-add" ng-model="client.mobile" maxlength="11">
          </a>
        </div>
        <div class="list">
          <a class="item item-icon-left item-icon-right" style="padding: 12px 15px">邮箱
            <input type="text" placeholder="请输入用户邮箱" class="client-add" ng-model="client.email">
          </a>
        </div>

        <div class="list" style="border-bottom: 1px solid #f0eff5">
          <a class="item item-icon-left item-icon-right" style="padding: 12px 15px">公司
            <input type="text" placeholder="请输入用户公司" class="client-add" ng-model="client.companyName">
          </a>
        </div>
        <div class="list">
            <a class="item item-icon-left item-icon-right" style="padding: 12px 15px">职位
              <input type="text" placeholder="请输入用户职位" class="client-add" ng-model="client.profession">
            </a>
        </div>
          <div class="list">
              <a class="item item-icon-left item-icon-right" style="padding: 12px 15px">用户等级
                  <span style="float: right">
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[client.starlevel>=1]" ng-click="pingji(1)"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[client.starlevel>=2]" ng-click="pingji(2)"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[client.starlevel>=3]" ng-click="pingji(3)"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[client.starlevel>=4]" ng-click="pingji(4)"></i>
                      <i ng-class="{true:'ion-android-star shopstar', false:'ion-android-star-outline no-shopstar'}[client.starlevel==5]" ng-click="pingji(5)"></i>
                  </span>
              </a>
          </div>
      </div>
    </div>
  </ion-content>
</ion-view>